package com.whale.cloud.util.constant;

import okhttp3.MediaType;

import java.text.SimpleDateFormat;

/**
 * 常量定义
 */
public class ConstantUtil {

  public static final String HEAD = "«";
  public static final String FISHTAIL = "»";
  //请求发送的类型失败
  public static final String DATABEAN_CODE_ERROR = "-1";
  //请求发送的类型成功
  public static final String DATABEAN_CODE_SUCCESS = "0";

  //系统管理员role
  public static final String ROLE_SYS = "10000";

  //集团管理员role
  public static final String ROLE_JT = "20000";

  //企业管理员
  public static final String ROLE_GM = "30000";

  //品牌管理role
  public static final String ROLE_BM = "40000";

  //区经role
  public static final String ROLE_AM = "50000";

  //店长role
  public static final String ROLE_SM = "60000";


  //导购role
  public static final String ROLE_STAFF = "70000";

  //是否可用（是）
  public static final String IS_ACTIVE_Y = "Y";
  //是否可用（否）
  public static final String IS_ACTIVE_N = "N";

  //已授权
  public static final String IS_AUTHORIZE_Y = "Y";
  //未授权
  public static final String IS_AUTHORIZE_N = "N";

  //时间格式
  public static final SimpleDateFormat DATETIME_FORMAT =
      new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

  public static final SimpleDateFormat DATETIME_FORMAT_DAY = new SimpleDateFormat("yyyy-MM-dd");

  public static final SimpleDateFormat DATETIME_FORMAT_DAY_NO = new SimpleDateFormat("yyyyMMdd");

  public static final SimpleDateFormat DATETIME_FORMAT_DAY_NUM =
      new SimpleDateFormat("yyyyMMddHHmmssSSS");

  //目标时间类型（日）
  public static final String TIME_TYPE_DAY = "D";
  //目标时间类型（周）
  public static final String TIME_TYPE_WEEK = "W";
  //目标时间类型（月）
  public static final String TIME_TYPE_MONTH = "M";
  //目标时间类型（年）
  public static final String TIME_TYPE_YEAR = "Y";

  public static final String SPECIAL_HEAD = "§";

  public static final String VIP_LABEL_TYPE_SYS = "sys";
  //签到
  public static final String STATUS_SIGN_IN = "0";
  //签退
  public static final String STATUS_SIGN_OUT = "-1";

  //导出数量限制10000条
  public static int EXPORTEXECLCOUNT = 10000;

  //数据显示类型——文本框
  public static final String DATE_SHOW_TYPE_TEXT = "text";
  //数据显示类型——下拉 框
  public static final String DATE_SHOW_TYPE_SELECT = "select";
  //数据显示类型——日历
  public static final String DATE_SHOW_TYPE_DATE = "date";
  //数据显示类型——长文本
  public static final String DATE_SHOW_TYPE_LONGTEXT = "longtext";

  public static final String ACTION_ADD = "新增";

  public static final String ACTION_DEL = "删除";

  public static final String ACTION_UPD = "编辑";

  //微信模板消息
  public static final String SENDTEMPLATE_URL =
      "http://wechat.dev.bizvane.com/app/wechat/sendTemplate";

  //微信群发消息
  public static final String SENDWXMASS_URL = "http://wechat.dev.bizvane.com/app/wechat/sendWxMass";

  public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");

  //微信素材类型定义 text文本 & image图片 & news图文 & video视频 & voice语音
  public static final String MATERIAL_TEXT_TYPE = "text";
  public static final String MATERIAL_IMAGE_TYPE = "image";
  public static final String MATERIAL_NEWS_TYPE = "news";
  public static final String MATERIAL_VIDEO_TYPE = "video";
  public static final String MATERIAL_VOICE_TYPE = "voice";

  //记录所属公司
  public static final String DEF_CORP_ID = "def_corp_id";

  //记录新增人字段
  public static final String CREATEID = "createid";
  //记录修改人字段
  public static final String MODIFYID = "modifyid";
  //创建时间
  public static final String CREATEDATE = "createdate";
  //修改时间
  public static final String MODIFYDATE = "modifydate";
  //公众号
  public static final String DEF_WX_PUBLIC_ID = "def_wx_public_id";

  //微信二维码url
  public static final String WX_QRCODE_WARN_URL = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=";

  public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); //设置日期格式


  //session 用户key
  public static final String SESSION_USER_KEY = "user_id";

  //session 公司key
  public static final String SESSION_CORP_KEY = "corp_id";

  //session 公众号key
  public static final String SESSION_PUBLIC_KEY = "public_id";

  public static final String SESSION_KEY = "session_data";

  public static final String PLATEFORM_BAIO_CLIENT_UI="baio-client-ui";

  public static final int MOBILE_AUTH_ADD =2;

  public static final int MOBILE_AUTH_MOD =4;

  public static final int MOBILE_AUTH_LIST =5;

  //region 签到类型
  public static final String SIGN_TYPE_DAY="EVERYDAY";

  public static final String SIGN_TYPE_WEEK="EVERYWEEK";
  //endregion

  //发券类型-签到
  public static final String SEND_TYPE_SIGN="A";
  //发券类型-扫码
  public static final String SEND_TYPE_SCANCODE="B";

  //发券类型-人工发券
  public static final String SEND_TYPE_BATCH="C";

  //发券类型-开卡发券
  public static final String SEND_TYPE_OPENCARD="D";

  //发券类型-生日礼物发券
  public static final String SEND_TYPE_BIRTHGIFT="E";


  public static final String VOU_TYPE_WECHAT="wechat";

}
